package com.bubblegumproject.ogo.swing.events;

/**
 * Base class for {@link Condition} objects.
 *
 * @author Azubuko Obele (buko.obele@gmail.com)
 */
public abstract class AbstractCondition implements Condition {

    private Listener listener;

    public Listener getListener() {
        return listener;
    }

    public void setListener(Listener listener) {
        this.listener = listener;
    }

    protected void occured() {
        listener.occured(this);
    }
}
